﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GetDataListener : AndroidJavaProxy
{
    Action<int, byte[]> callback;
    public GetDataListener(Action<int, byte[]> callback) : base(AndroidBridge.packageName + ".GetDataListener")
    {
        this.callback = callback;
    }

    public void GetData(int type, byte[] data) 
    {
        callback?.Invoke(type, data);
    }
}
